﻿namespace CodingExercises._11_20;

public static class DayOfWeekExtensions
{
    // 扩展DayOfWeek以检测周末
    public static bool IsWeekend(this DayOfWeek dayOfWeek)
    {
        return dayOfWeek == DayOfWeek.Saturday || dayOfWeek == DayOfWeek.Sunday;
    }
}